"""
wow.exceptions
==============

"""

class WowException(Exception):
    """
    WowException
    ============
    
    A ``wow-python``-specific exception wrapper. God knows what
    this'll be used for.
    
    """

class CharNotFound(WowException):
    """
    CharNotFound
    ============
    
    An exception raised upon search for a non-existent character.
    
    """
    def __init__(self, name, *args):
        """
        CharNotFound.__init__(self, name, *args) -> CharNotFound
        Initialise the exception, storing its message (based on the
        character name ``name``, which is a required argument).
        
        """
        self.message = 'The character %s was not found in the Armory.' % name
        self.args = (self.message,) + args

class InvalidArgument(WowException):
    """
    InvalidArgument
    ===============
    
    An exception representing the passing of an invalid argument.
    
    """
